﻿@using Volo.Abp.UI.Navigation
@model ApplicationMenuItem
@{
    var elementId = string.IsNullOrEmpty(Model.ElementId) ? string.Empty : $"id=\"{Model.ElementId}\"";
    var cssClass = string.IsNullOrEmpty(Model.CssClass) ? string.Empty : Model.CssClass;
    var disabled = Model.IsDisabled ? "disabled" : string.Empty;
}
@if (Model.IsLeaf)
{
    <a class="dropdown-item @cssClass @disabled" href="@(Model.Url ?? "#")" id="Menu_@(Model.Name)" @Html.Raw(elementId)>
        <i class="zmdi @Model.Icon"></i>
        <span>@Model.DisplayName</span>
    </a>
}